package com.controller;

import com.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
@Controller
@RequestMapping("/user")
public class LoginOutController {

//    @Autowired
//    LoginService loginService;

    @RequestMapping("/loginOut1.do")
    public String loginOut1(HttpServletRequest request){
        request.getSession().invalidate();
        return "redirect:/login";

    }
}
